package com.jf.blog_jf04.data.ov;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("博客添加或修改")
public class BlogUpdateOV {
    @ApiModelProperty("博客编号，为空则表示添加，否则修改")
    private Integer blogId;
    @ApiModelProperty(value = "博客标题", required = true)
    private String title;
    @ApiModelProperty("博客封面图")
    private String cover;
    @ApiModelProperty(value = "博客分类", required = true)
    private Integer categoryId;
    @ApiModelProperty(value = "博客内容", required = true)
    private String content;
    @ApiModelProperty(value = "是否允许评论1允许2禁止", allowableValues = "1,2", example = "1")
    private Integer hasComment;
    @ApiModelProperty(value = "博客状态1发布2草稿", allowableValues = "1,2", example = "1")
    private Integer blogStatus;
    @ApiModelProperty(value = "标签集合", required = true)
    private List<Integer> tagIds;
}
